package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * 用户产品收藏
 * 
 * @author yerly
 *
 */
@Entity
public class UserItemStar {
	@Id
	private Long id;
	@ManyToOne
	private User user;
	@ManyToOne
	private Item item;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "UserItemStar [id=" + id + ", user=" + user + ", item=" + item
				+ ", disabled=" + disabled + "]";
	}

}
